/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import br.com.proteu.hibernate.util.FireBirdHelperProteu;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.Transient;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="MEDICOSHORARIOS")
public class MedicosHorariosProteu implements Serializable{

    @Id
    @Column(name="MEH_ST_CODIGO")
    private Character mehStCodigo;
    @Column(name="MED_ST_CODIGO")
    private String medStCodigo; //eh chave primaria???? criei equals e hash code
    @Column(name="MEH_CH_DOMINGO")
    private String mehChDomingo;
    @Column(name="MEH_CH_SEGUNDA")
    private String mehChSegunda;
    @Column(name="MEH_CH_TERCA")
    private String mehChTerca;
    @Column(name="MEH_CH_QUARTA")
    private String mehChQuarta;
    @Column(name="MEH_CH_QUINTA")
    private String mehChQuinta;
    @Column(name="MEH_CH_SEXTA")
    private String mehChSexta;
    @Column(name="MEH_CH_SABADO")
    private String mehChSabado;
    @Column(name="MEH_ST_INTERVALO")
    private String mehStIntervalo;
    @Column(name="MEH_ST_INIM_DOM")
    private String mehStInimDom;
    @Column(name="MEH_ST_FIMM_DOM")
    private String mehStFimmDom;
    @Column(name="MEH_ST_INIT_DOM")
    private String mehStInitDom;
    @Column(name="MEH_ST_FIMT_DOM")
    private String mehStFimtDom;
    @Column(name="MEH_ST_ININ_DOM")
    private String mehStIninDom;
    @Column(name="MEH_ST_FIMN_DOM")
    private String mehStFimnDom;
    @Column(name="MEH_ST_INIM_SEG")
    private String mehStInimSeg;
    @Column(name="MEH_ST_FIMM_SEG")
    private String mehStFimmSeg;
    @Column(name="MEH_ST_INIT_SEG")
    private String mehStInitSeg;
    @Column(name="MEH_ST_FIMT_SEG")
    private String mehStFimtSeg;
    @Column(name="MEH_ST_ININ_SEG")
    private String mehStIninSeg;
    @Column(name="MEH_ST_FIMN_SEG")
    private String mehStFimnSeg;
    @Column(name="MEH_ST_INIM_TER")
    private String mehStInimTer;
    @Column(name="MEH_ST_FIMM_TER")
    private String mehStFimmTer;
    @Column(name="MEH_ST_INIT_TER")
    private String mehStInitTer;
    @Column(name="MEH_ST_FIMT_TER")
    private String mehStFimtTer;
    @Column(name="MEH_ST_ININ_TER")
    private String mehStIninTer;
    @Column(name="MEH_ST_FIMN_TER")
    private String mehStFimnTer;
    @Column(name="MEH_ST_INIM_QUA")
    private String mehStInimQua;
    @Column(name="MEH_ST_FIMM_QUA")
    private String mehStFimmQua;
    @Column(name="MEH_ST_INIT_QUA")
    private String mehStInitQua;
    @Column(name="MEH_ST_FIMT_QUA")
    private String mehStFimtQua;
    @Column(name="MEH_ST_ININ_QUA")
    private String mehStIninQua;
    @Column(name="MEH_ST_FIMN_QUA")
    private String mehStFimnQua;
    @Column(name="MEH_ST_INIM_QUI")
    private String mehStInimQui;
    @Column(name="MEH_ST_FIMM_QUI")
    private String mehStFimmQui;
    @Column(name="MEH_ST_INIT_QUI")
    private String mehStInitQui;
    @Column(name="MEH_ST_FIMT_QUI")
    private String mehStFimtQui;
    @Column(name="MEH_ST_ININ_QUI")
    private String mehStIninQui;
    @Column(name="MEH_ST_FIMN_QUI")
    private String mehStFimnQui;
    @Column(name="MEH_ST_INIM_SEX")
    private String mehStInimSex;
    @Column(name="MEH_ST_FIMM_SEX")
    private String mehStFimmSex;
    @Column(name="MEH_ST_INIT_SEX")
    private String mehStInitSex;
    @Column(name="MEH_ST_FIMT_SEX")
    private String mehStFimtSex;
    @Column(name="MEH_ST_ININ_SEX")
    private String mehStIninSex;
    @Column(name="MEH_ST_FIMN_SEX")
    private String mehStFimnSex;
    @Column(name="MEH_ST_INIM_SAB")
    private String mehStInimSab;
    @Column(name="MEH_ST_FIMM_SAB")
    private String mehStFimmSab;
    @Column(name="MEH_ST_INIT_SAB")
    private String mehStInitSab;
    @Column(name="MEH_ST_FIMT_SAB")
    private String mehStFimtSab;
    @Column(name="MEH_ST_ININ_SAB")
    private String mehStIninSab;
    @Column(name="MEH_ST_FIMN_SAB")
    private String mehStFimnSab;
    @Temporal(javax.persistence.TemporalType.DATE)
    @Column(name="MEH_SYS_DATA")
    private Date mehSysData;
    @Column(name="MEH_SYS_USUARIO")
    private String mehSysUsuario;
    @Column(name="UNI_IN_CODIGO")
    private Integer uniInCodigo;
    @Column(name="ESC_ST_CODIGO")
    private String escStCodigo;

    @Transient
    private MedicosProteu medicoObject;


    public String getEscStCodigo() {
        return escStCodigo;
    }

    public void setEscStCodigo(String escStCodigo) {
        this.escStCodigo = escStCodigo;
    }

    public String getMedStCodigo() {
        return medStCodigo;
    }

    public void setMedStCodigo(String medStCodigo) {
        this.medStCodigo = medStCodigo;
    }

    public String getMehChDomingo() {
        return mehChDomingo;
    }

    public void setMehChDomingo(String mehChDomingo) {
        this.mehChDomingo = mehChDomingo;
    }

    public String getMehChQuarta() {
        return mehChQuarta;
    }

    public void setMehChQuarta(String mehChQuarta) {
        this.mehChQuarta = mehChQuarta;
    }

    public String getMehChQuinta() {
        return mehChQuinta;
    }

    public void setMehChQuinta(String mehChQuinta) {
        this.mehChQuinta = mehChQuinta;
    }

    public String getMehChSabado() {
        return mehChSabado;
    }

    public void setMehChSabado(String mehChSabado) {
        this.mehChSabado = mehChSabado;
    }

    public String getMehChSegunda() {
        return mehChSegunda;
    }

    public void setMehChSegunda(String mehChSegunda) {
        this.mehChSegunda = mehChSegunda;
    }

    public String getMehChSexta() {
        return mehChSexta;
    }

    public void setMehChSexta(String mehChSexta) {
        this.mehChSexta = mehChSexta;
    }

    public String getMehChTerca() {
        return mehChTerca;
    }

    public void setMehChTerca(String mehChTerca) {
        this.mehChTerca = mehChTerca;
    }

    public Character getMehStCodigo() {
        return mehStCodigo;
    }

    public void setMehStCodigo(Character mehStCodigo) {
        this.mehStCodigo = mehStCodigo;
    }

    public String getMehStFimmDom() {
        return mehStFimmDom;
    }

    public void setMehStFimmDom(String mehStFimmDom) {
        this.mehStFimmDom = mehStFimmDom;
    }

    public String getMehStFimmQua() {
        return mehStFimmQua;
    }

    public void setMehStFimmQua(String mehStFimmQua) {
        this.mehStFimmQua = mehStFimmQua;
    }

    public String getMehStFimmQui() {
        return mehStFimmQui;
    }

    public void setMehStFimmQui(String mehStFimmQui) {
        this.mehStFimmQui = mehStFimmQui;
    }

    public String getMehStFimmSab() {
        return mehStFimmSab;
    }

    public void setMehStFimmSab(String mehStFimmSab) {
        this.mehStFimmSab = mehStFimmSab;
    }

    public String getMehStFimmSeg() {
        return mehStFimmSeg;
    }

    public void setMehStFimmSeg(String mehStFimmSeg) {
        this.mehStFimmSeg = mehStFimmSeg;
    }

    public String getMehStFimmSex() {
        return mehStFimmSex;
    }

    public void setMehStFimmSex(String mehStFimmSex) {
        this.mehStFimmSex = mehStFimmSex;
    }

    public String getMehStFimmTer() {
        return mehStFimmTer;
    }

    public void setMehStFimmTer(String mehStFimmTer) {
        this.mehStFimmTer = mehStFimmTer;
    }

    public String getMehStFimnDom() {
        return mehStFimnDom;
    }

    public void setMehStFimnDom(String mehStFimnDom) {
        this.mehStFimnDom = mehStFimnDom;
    }

    public String getMehStFimnQua() {
        return mehStFimnQua;
    }

    public void setMehStFimnQua(String mehStFimnQua) {
        this.mehStFimnQua = mehStFimnQua;
    }

    public String getMehStFimnQui() {
        return mehStFimnQui;
    }

    public void setMehStFimnQui(String mehStFimnQui) {
        this.mehStFimnQui = mehStFimnQui;
    }

    public String getMehStFimnSab() {
        return mehStFimnSab;
    }

    public void setMehStFimnSab(String mehStFimnSab) {
        this.mehStFimnSab = mehStFimnSab;
    }

    public String getMehStFimnSeg() {
        return mehStFimnSeg;
    }

    public void setMehStFimnSeg(String mehStFimnSeg) {
        this.mehStFimnSeg = mehStFimnSeg;
    }

    public String getMehStFimnSex() {
        return mehStFimnSex;
    }

    public void setMehStFimnSex(String mehStFimnSex) {
        this.mehStFimnSex = mehStFimnSex;
    }

    public String getMehStFimnTer() {
        return mehStFimnTer;
    }

    public void setMehStFimnTer(String mehStFimnTer) {
        this.mehStFimnTer = mehStFimnTer;
    }

    public String getMehStFimtDom() {
        return mehStFimtDom;
    }

    public void setMehStFimtDom(String mehStFimtDom) {
        this.mehStFimtDom = mehStFimtDom;
    }

    public String getMehStFimtQua() {
        return mehStFimtQua;
    }

    public void setMehStFimtQua(String mehStFimtQua) {
        this.mehStFimtQua = mehStFimtQua;
    }

    public String getMehStFimtQui() {
        return mehStFimtQui;
    }

    public void setMehStFimtQui(String mehStFimtQui) {
        this.mehStFimtQui = mehStFimtQui;
    }

    public String getMehStFimtSab() {
        return mehStFimtSab;
    }

    public void setMehStFimtSab(String mehStFimtSab) {
        this.mehStFimtSab = mehStFimtSab;
    }

    public String getMehStFimtSeg() {
        return mehStFimtSeg;
    }

    public void setMehStFimtSeg(String mehStFimtSeg) {
        this.mehStFimtSeg = mehStFimtSeg;
    }

    public String getMehStFimtSex() {
        return mehStFimtSex;
    }

    public void setMehStFimtSex(String mehStFimtSex) {
        this.mehStFimtSex = mehStFimtSex;
    }

    public String getMehStFimtTer() {
        return mehStFimtTer;
    }

    public void setMehStFimtTer(String mehStFimtTer) {
        this.mehStFimtTer = mehStFimtTer;
    }

    public String getMehStInimDom() {
        return mehStInimDom;
    }

    public void setMehStInimDom(String mehStInimDom) {
        this.mehStInimDom = mehStInimDom;
    }

    public String getMehStInimQua() {
        return mehStInimQua;
    }

    public void setMehStInimQua(String mehStInimQua) {
        this.mehStInimQua = mehStInimQua;
    }

    public String getMehStInimQui() {
        return mehStInimQui;
    }

    public void setMehStInimQui(String mehStInimQui) {
        this.mehStInimQui = mehStInimQui;
    }

    public String getMehStInimSab() {
        return mehStInimSab;
    }

    public void setMehStInimSab(String mehStInimSab) {
        this.mehStInimSab = mehStInimSab;
    }

    public String getMehStInimSeg() {
        return mehStInimSeg;
    }

    public void setMehStInimSeg(String mehStInimSeg) {
        this.mehStInimSeg = mehStInimSeg;
    }

    public String getMehStInimSex() {
        return mehStInimSex;
    }

    public void setMehStInimSex(String mehStInimSex) {
        this.mehStInimSex = mehStInimSex;
    }

    public String getMehStInimTer() {
        return mehStInimTer;
    }

    public void setMehStInimTer(String mehStInimTer) {
        this.mehStInimTer = mehStInimTer;
    }

    public String getMehStIninDom() {
        return mehStIninDom;
    }

    public void setMehStIninDom(String mehStIninDom) {
        this.mehStIninDom = mehStIninDom;
    }

    public String getMehStIninQua() {
        return mehStIninQua;
    }

    public void setMehStIninQua(String mehStIninQua) {
        this.mehStIninQua = mehStIninQua;
    }

    public String getMehStIninQui() {
        return mehStIninQui;
    }

    public void setMehStIninQui(String mehStIninQui) {
        this.mehStIninQui = mehStIninQui;
    }

    public String getMehStIninSab() {
        return mehStIninSab;
    }

    public void setMehStIninSab(String mehStIninSab) {
        this.mehStIninSab = mehStIninSab;
    }

    public String getMehStIninSeg() {
        return mehStIninSeg;
    }

    public void setMehStIninSeg(String mehStIninSeg) {
        this.mehStIninSeg = mehStIninSeg;
    }

    public String getMehStIninSex() {
        return mehStIninSex;
    }

    public void setMehStIninSex(String mehStIninSex) {
        this.mehStIninSex = mehStIninSex;
    }

    public String getMehStIninTer() {
        return mehStIninTer;
    }

    public void setMehStIninTer(String mehStIninTer) {
        this.mehStIninTer = mehStIninTer;
    }

    public String getMehStInitDom() {
        return mehStInitDom;
    }

    public void setMehStInitDom(String mehStInitDom) {
        this.mehStInitDom = mehStInitDom;
    }

    public String getMehStInitQua() {
        return mehStInitQua;
    }

    public void setMehStInitQua(String mehStInitQua) {
        this.mehStInitQua = mehStInitQua;
    }

    public String getMehStInitQui() {
        return mehStInitQui;
    }

    public void setMehStInitQui(String mehStInitQui) {
        this.mehStInitQui = mehStInitQui;
    }

    public String getMehStInitSab() {
        return mehStInitSab;
    }

    public void setMehStInitSab(String mehStInitSab) {
        this.mehStInitSab = mehStInitSab;
    }

    public String getMehStInitSeg() {
        return mehStInitSeg;
    }

    public void setMehStInitSeg(String mehStInitSeg) {
        this.mehStInitSeg = mehStInitSeg;
    }

    public String getMehStInitSex() {
        return mehStInitSex;
    }

    public void setMehStInitSex(String mehStInitSex) {
        this.mehStInitSex = mehStInitSex;
    }

    public String getMehStInitTer() {
        return mehStInitTer;
    }

    public void setMehStInitTer(String mehStInitTer) {
        this.mehStInitTer = mehStInitTer;
    }

    public String getMehStIntervalo() {
        return mehStIntervalo;
    }

    public void setMehStIntervalo(String mehStIntervalo) {
        this.mehStIntervalo = mehStIntervalo;
    }

    public Date getMehSysData() {
        return mehSysData;
    }

    public void setMehSysData(Date mehSysData) {
        this.mehSysData = mehSysData;
    }

    public String getMehSysUsuario() {
        return mehSysUsuario;
    }

    public void setMehSysUsuario(String mehSysUsuario) {
        this.mehSysUsuario = mehSysUsuario;
    }

    public Integer getUniInCodigo() {
        return uniInCodigo;
    }

    public void setUniInCodigo(Integer uniInCodigo) {
        this.uniInCodigo = uniInCodigo;
    }

    @Transient
    public MedicosProteu getMedicoObject() {
        if(medicoObject == null && medStCodigo != null){
            medicoObject = (MedicosProteu)FireBirdHelperProteu.getObject(MedicosProteu.class, medStCodigo);
        }
        return medicoObject;
    }

    public void setMedicoObject(MedicosProteu medicoObject) {
        this.medicoObject = medicoObject;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MedicosHorariosProteu other = (MedicosHorariosProteu) obj;
        if (this.mehStCodigo != other.mehStCodigo && (this.mehStCodigo == null || !this.mehStCodigo.equals(other.mehStCodigo))) {
            return false;
        }
        return true;
    }

    
    @Override
    public int hashCode() {
        int hash = 7;
        hash = 47 * hash + (this.mehStCodigo != null ? this.mehStCodigo.hashCode() : 0);
        return hash;
    }

    


}
